<?php

/**
 * Phonenumber form.
 *
 * @package    smp-crm
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PhonenumberForm extends BasePhonenumberForm {

    public function configure() {
        unset($this['user_id']);
        if ($this->object->exists()) {
            $this->widgetSchema['delete'] = new sfWidgetFormInputCheckbox();
            $this->validatorSchema['delete'] = new sfValidatorPass();
        }
        //$this->validatorSchema->setOption('allow_extra_fields', true);
    }

}
